package com.hngy.educationaladministration.mapper;

import com.hngy.educationaladministration.entity.Course;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface CourseMapper {
    //@Select("SELECT course.* FROM subjects , course WHERE subjects.cid = course.cid AND subjects.sid = #{id}")
    List<Course> getCourse(@Param("id") Long id);
}
